Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
19 lines (15 loc) · 336 Bytes

3.8.7 - Coroutine/MySQL/Statement->fetch.md

File metadata and controls

19 lines (15 loc) · 336 Bytes

Coroutine\MySQL\Statement->fetch

Ver >= 4.0-rc1 , 需在connect时加入fetch_mode => true选项

从结果集中获取下一行

function Coroutine\MySQL->fetch() : ?array

示例

$stmt = $db->prepare('SELECT * FROM ckl LIMIT 1');
$stmt->execute();
while($ret = $stmt->fetch())
{
	var_dump($ret);
}